﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Thanhlichtek.BOS.Bullhorn.BullhornApi;
using Thanhlichtek.BOS.Sync;

namespace Thanhlichtek.BOS.Win
{
    public class SyncInfoDetailObject
    {
        public SyncInfoObject SyncInfoObject;
        public clientContactDto ClientContact { get; set; }
        public clientCorporationDto ClientCorporation { get; set; }
        public corporateUserDto Owner { get; set; }

        public String BullhornId { get; set; }
        public String Email { get { return (ClientContact != null ? ClientContact.email : ""); } }
        public String FirstName { get { return (ClientContact != null ? ClientContact.firstName : ""); } }
        public String LastName { get { return (ClientContact != null ? ClientContact.lastName : ""); } }
        public String Title { get { return (ClientContact != null ? ClientContact.occupation : ""); } }
        public String Company { get { return (ClientCorporation != null ? ClientCorporation.name : ""); } }
        public EmailFixedState EmailState { get; set; }
        public String Status { get; set; }
        public String State { get { return (ClientContact != null ? ClientContact.address.state : ""); } }
        public String ZipCode { get { return (ClientContact != null ? ClientContact.address.zip : ""); } }
        public String OwnerName { get { return (Owner != null ? Owner.name : ""); } }
    }
}
